package com.shisfish.library.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IArrearageBookInter;
import com.shisfish.library.Model.ArrearageBook;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class ArrearageBookImpl implements IArrearageBookInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	private IArrearageBookInter mapper = (IArrearageBookInter) ac.getBean("arrearageBookMapper");
	
	@Override
	public int insertOne(ArrearageBook t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<ArrearageBook> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOne(ArrearageBook t) {
		// TODO Auto-generated method stub
		return mapper.updateOne(t);
	}

	@Override
	public int updateAll(List<ArrearageBook> list) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ArrearageBook> selectById(int id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<ArrearageBook> selectByKey(String key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<ArrearageBook> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void deleteByBE(String barCode, String employee) {
		// TODO Auto-generated method stub
		mapper.deleteByBE(barCode, employee);
	}

	@Override
	public ArrearageBook selectByBM(String barCode, String employee) {
		// TODO Auto-generated method stub
		return mapper.selectByBM(barCode, employee);
	}

	@Override
	public List<Map<String, Object>> selectArrearage() {
		// TODO Auto-generated method stub
		return mapper.selectArrearage();
	}

	@Override
	public List<ArrearageBook> selectByEmployee(String employee) {
		// TODO Auto-generated method stub
		return mapper.selectByEmployee(employee);
	}

	public List<Map<String, Object>> selectEM(String employee) {
		// TODO Auto-generated method stub
		return mapper.selectEM(employee);
	}

}
